import request from '@/utils/request'

// 查询特殊工种列表
export function listSpecialskill(query) {
  return request({
    url: '/system/specialskill/list',
    method: 'get',
    params: query
  })
}

// 查询特殊工种详细
export function getSpecialskill(certificateId) {
  return request({
    url: '/system/specialskill/' + certificateId,
    method: 'get'
  })
}

// 新增特殊工种
export function addSpecialskill(data) {
  return request({
    url: '/system/specialskill',
    method: 'post',
    data: data
  })
}

// 修改特殊工种
export function updateSpecialskill(data) {
  return request({
    url: '/system/specialskill',
    method: 'put',
    data: data
  })
}

// 删除特殊工种
export function delSpecialskill(certificateId) {
  return request({
    url: '/system/specialskill/' + certificateId,
    method: 'delete'
  })
}
